package com.example.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.dao.OrdersDao;
import com.example.entity.Orders;
import com.example.entity.TimeData;
import com.example.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersDao,Orders> implements OrdersService {

    @Autowired
    private OrdersDao ordersDao;

    @Override
    public List<TimeData> getTotalByYear() {

        return ordersDao.getTotalByYear();
    }

    @Override
    public List<TimeData> getTotalByMonth() {
        return ordersDao.getTotalByMonth();
    }

    @Override
    public List<TimeData> getTotalByDay() {
        return ordersDao.getTotalByDay();
    }
}
